package com.tianluo.tianluobookstore.repository;

import com.github.pagehelper.PageInfo;
import com.tianluo.tianluobookstore.BookPO;

import java.util.List;

public interface BookRepository {

    BookPO queryByIsbn(String isBn);

    int updateBookStockByIdAndVersion(Integer bookId, Integer stockQuantity, Integer version);

    int insertBook(BookPO bookPO);

    PageInfo<BookPO> queryBookList(Integer pageNum, Integer pageSize);


    BookPO queryBookById(Integer bookId);

}
